import { app, BrowserWindow } from "electron";
const createWindow = () => {
  const mainWindow = new BrowserWindow({
    width: 1200,
    height: 700,
    autoHideMenuBar: true,
    title: "\u64CD\u4F5C\u7CFB\u7EDF\u5B9E\u9A8C"
  });
  mainWindow.loadURL("http://localhost:4000");
  mainWindow.webContents.openDevTools();
};
app.whenReady().then(() => {
  createWindow();
  app.on("activate", () => {
    if (BrowserWindow.getAllWindows().length === 0)
      createWindow();
  });
});
